//
//  JVAutoNetDiagnosisMonitor.h
//  LeGaoCommon
//
//  Created by 颜小强 on 2019/3/25.
//  Copyright © 2019年 王卫. All rights reserved.
//

#import <Foundation/Foundation.h>

NS_ASSUME_NONNULL_BEGIN

typedef void(^JVAutoNetDiagnosisMonitorBlock)(void);

@interface JVAutoNetDiagnosisMonitor : NSObject

@property(nonatomic, assign) BOOL                        isLaunching;
@property(nonnull, copy) JVAutoNetDiagnosisMonitorBlock  block;

+ (instancetype)instance;

- (void)addRequestCountWithError:(NSError *)error;
- (void)startNetDiagnosis;
- (void)endNetDiagnosis;

@end

NS_ASSUME_NONNULL_END
